<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./vue.js"></script>
    <script src="./heroes.js"></script>
    <style>
        .heroes {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin: 0;
            padding: 0;
            list-style: none;
        }
    </style>
  </head>
  <body>
    <div id="app">
      <ul class="heroes">
        <li v-for="hero in heroes">
          <img v-bind:src="hero.icon" alt="" />
          <p>{{hero.name}}</p>
        </li>
      </ul>
    </div>
    <script>
      //   console.log(Vue);
      var app = new Vue({
        el: "#app",
        data: {
          heroes: heroes,
        },
      });
    </script>
  </body>
</html>
